package eu.irreality.dai.ui.keyboard;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import eu.irreality.dai.util.Debug;

/**
 * Listens for key pressings and delegates to KeyReceiver.
 * 
 */
public class DaiKeyListener extends KeyAdapter
{

    private KeyReceiver receiver;

    public DaiKeyListener(KeyReceiver receiver)
    {
	this.receiver = receiver;
    }

    public void keyPressed(KeyEvent e)
    {
	receiver.keyPressed(e);
	Debug.println(e);
    }
}
